package com.csxy.hxl.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Schema(description = "EduTeacher对象")
public class EduTeacher implements Serializable {
    private static final long serialVersionUID = 1L;
    @Schema(description = "讲师ID")
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;
    @Schema(description = "讲师姓名")
    private String name;
    @Schema(description = "讲师简介")
    private String intro;
    @Schema(description = "讲师资历")
    private String career;
    @Schema(description = "头衔 1高级讲师 2首席讲师")
    private Integer level;
    @Schema(description = "讲师头像")
    private String avatar;
    @Schema(description = "排序")
    private Integer sort;
    @Schema(description = "逻辑删除 1（true）已删除，0（false）未删除")
    @TableLogic
    private Integer isDeleted;
    // 创建时间和更新时间
    @Schema(description = "创建时间", example = "2025-01-01 8:00:00")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @Schema(description = "更新时间", example = "2025-01-01 8:00:00")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

}
